package com.ruoyi.job.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.job.mapper.JobInfoMapper;
import com.ruoyi.job.domain.JobInfo;
import com.ruoyi.job.service.IJobInfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 兼职详情Service业务层处理
 * 
 * @author ace
 * @date 2020-02-02
 */
@Service
public class JobInfoServiceImpl implements IJobInfoService 
{
    @Autowired
    private JobInfoMapper jobInfoMapper;

    /**
     * 查询兼职详情
     * 
     * @param jobInfoId 兼职详情ID
     * @return 兼职详情
     */
    @Override
    public JobInfo selectJobInfoById(Long jobInfoId)
    {
        return jobInfoMapper.selectJobInfoById(jobInfoId);
    }

    /**
     * 查询兼职详情列表
     * 
     * @param jobInfo 兼职详情
     * @return 兼职详情
     */
    @Override
    public List<JobInfo> selectJobInfoList(JobInfo jobInfo)
    {
        return jobInfoMapper.selectJobInfoList(jobInfo);
    }

    /**
     * 新增兼职详情
     * 
     * @param jobInfo 兼职详情
     * @return 结果
     */
    @Override
    public int insertJobInfo(JobInfo jobInfo)
    {
        return jobInfoMapper.insertJobInfo(jobInfo);
    }

    /**
     * 修改兼职详情
     * 
     * @param jobInfo 兼职详情
     * @return 结果
     */
    @Override
    public int updateJobInfo(JobInfo jobInfo)
    {
        return jobInfoMapper.updateJobInfo(jobInfo);
    }

    /**
     * 删除兼职详情对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteJobInfoByIds(String ids)
    {
        return jobInfoMapper.deleteJobInfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除兼职详情信息
     * 
     * @param jobInfoId 兼职详情ID
     * @return 结果
     */
    @Override
    public int deleteJobInfoById(Long jobInfoId)
    {
        return jobInfoMapper.deleteJobInfoById(jobInfoId);
    }
}
